using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainingCurPrerequisite")]
    public class TrainingCurPrerequisite
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PrerequisiteId", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public int PrerequisiteId { get; set; }

		[ForeignKey("PrerequisiteTrainingCur")]
		[DataMember, Display(Name = "PrerequisiteTrainingCurId", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public int PrerequisiteTrainingCurId { get; set; }

		[DataMember, Display(Name = "PrerequisiteTrainingCurDesc", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public string PrerequisiteTrainingCurDesc { get; set; }

		[ForeignKey("TrainingCur")]
		[DataMember, Display(Name = "TrainingCurId", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public int TrainingCurId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public string CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public string UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainingCurPrerequisitesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.TrainingCurPrerequisite PrerequisiteTrainingCur { get; set; }

		public virtual HRM.TrainingCurriculum TrainingCur { get; set; }

    }
}